<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* display: inline-flex;行内块级 */
        /* container  item */
        /* 主轴 交叉轴
        flex 可嵌套写  管的是直接元素
        */
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            display: flex;
            /* flex-wrap: wrap; */
            background-color: red;
            width: 200px;
            height: 200px;
        }

        .item {
            width: 60px;
            height: 60px;
            background-color: orange;
        }
    </style>
</head>

<body>
    aaa
    <div class="box">
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">3</div>
        <div class="item">4567</div>
        <div class="item">3</div>
        <div class="item">3</div>
        <div class="item">3</div>
        <div class="item">3</div>
    </div>
    bbb
</body>

</html>